//
// Created by cychen on 2023/3/7.
//

#ifndef WORKLIST_INPUT_H
#define WORKLIST_INPUT_H

#include <string>
#include <utility>
#include <vector>
#include <ostream>
#include "Word.h"

extern "C" {
#include "optparse.h"
}

using namespace std;

int execPreprocess(int argc, char *argv[], vector<string> &result);

string toLowercase(string str);

int char2int_(char c);

int getWordFromStr(string str, vector<string> &wordList);

bool moreThanOnePara(int argc, char *argv[], struct optparse options);

// *FILE -> string
int readFile(const string &filePath, string &result);

int parseArgument(int argc, char *argv[], string &result);


#endif //WORKLIST_INPUT_H
